package com.jht.engine.platsign;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;

/* loaded from: classes.dex */
public interface IPlatformService extends IInterface {
    String getCertification() throws RemoteException;

    String getCustomIsbn() throws RemoteException;

    String getFlashID() throws RemoteException;

    boolean getFullScreen() throws RemoteException;

    String getSeries() throws RemoteException;

    /* loaded from: classes.dex */
    public static abstract class Stub extends Binder implements IPlatformService {
        private static final String DESCRIPTOR = "com.jht.engine.platsign.IPlatformService";
        static final int TRANSACTION_getCertification = 1;
        static final int TRANSACTION_getCustomIsbn = 2;
        static final int TRANSACTION_getFlashID = 3;
        static final int TRANSACTION_getFullScreen = 5;
        static final int TRANSACTION_getSeries = 4;

        @Override // android.os.IInterface
        public IBinder asBinder() {
            return this;
        }

        public Stub() {
            attachInterface(this, DESCRIPTOR);
        }

        public static IPlatformService asInterface(IBinder iBinder) {
            if (iBinder == null) {
                return null;
            }
            IInterface queryLocalInterface = iBinder.queryLocalInterface(DESCRIPTOR);
            if (queryLocalInterface != null && (queryLocalInterface instanceof IPlatformService)) {
                return (IPlatformService) queryLocalInterface;
            }
            return new Proxy(iBinder);
        }

        @Override // android.os.Binder
        public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
            if (i == 1) {
                parcel.enforceInterface(DESCRIPTOR);
                String certification = getCertification();
                parcel2.writeNoException();
                parcel2.writeString(certification);
                return true;
            } else if (i == 2) {
                parcel.enforceInterface(DESCRIPTOR);
                String customIsbn = getCustomIsbn();
                parcel2.writeNoException();
                parcel2.writeString(customIsbn);
                return true;
            } else if (i == 3) {
                parcel.enforceInterface(DESCRIPTOR);
                String flashID = getFlashID();
                parcel2.writeNoException();
                parcel2.writeString(flashID);
                return true;
            } else if (i == 4) {
                parcel.enforceInterface(DESCRIPTOR);
                String series = getSeries();
                parcel2.writeNoException();
                parcel2.writeString(series);
                return true;
            } else if (i != 5) {
                if (i == 1598968902) {
                    parcel2.writeString(DESCRIPTOR);
                    return true;
                }
                return super.onTransact(i, parcel, parcel2, i2);
            } else {
                parcel.enforceInterface(DESCRIPTOR);
                boolean fullScreen = getFullScreen();
                parcel2.writeNoException();
                parcel2.writeInt(fullScreen ? 1 : 0);
                return true;
            }
        }

        /* loaded from: classes.dex */
        private static class Proxy implements IPlatformService {
            private IBinder mRemote;

            public String getInterfaceDescriptor() {
                return Stub.DESCRIPTOR;
            }

            Proxy(IBinder iBinder) {
                this.mRemote = iBinder;
            }

            @Override // android.os.IInterface
            public IBinder asBinder() {
                return this.mRemote;
            }

            @Override // com.jht.engine.platsign.IPlatformService
            public String getCertification() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    this.mRemote.transact(1, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readString();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            @Override // com.jht.engine.platsign.IPlatformService
            public String getCustomIsbn() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    this.mRemote.transact(2, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readString();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            @Override // com.jht.engine.platsign.IPlatformService
            public String getFlashID() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    this.mRemote.transact(3, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readString();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            @Override // com.jht.engine.platsign.IPlatformService
            public String getSeries() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    this.mRemote.transact(4, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readString();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            @Override // com.jht.engine.platsign.IPlatformService
            public boolean getFullScreen() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken(Stub.DESCRIPTOR);
                    this.mRemote.transact(5, obtain, obtain2, 0);
                    obtain2.readException();
                    return obtain2.readInt() != 0;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }
        }
    }
}
